package com.citytransport.prokopjuk.dao;

import java.util.HashMap;

import com.citytransport.prokopjuk.vehicleDTO.Vehicle;

/*
 * Interface that define method for abstract class Vehicle. This interface realized 
 * CRUD conception for forking with data base. This methods will use within 
 * operations with classes that extends Vehicle abstract class. 
 * */
public interface IDAOVehicle {
    void create(Vehicle vehicle);
    /*
     * Returns Map in which stored values of attribute abstract class Vehicle
     * */
    HashMap<String, String> read(int vehicleID);
    
    HashMap<String, String> readAtRoute(int routeID);

    void update(Vehicle vehicle, int seatAmount,
	    String registrationNumber, String model, int routeID);
    
    void delete(Vehicle vehicle);
    
    void delete(int vehicleID);
}
